fixed error in script