fix scripts in template default