Fixed error in script