fix small bugs in new standard script