fixed error message in script