Make basic_template more stable