updated bug in script