fixed script issue