fixing another possible error in script