Script error fixed