fixing bug in script