oops bug in script