fixed scripts issue