fix scripts problem