fix for script clicking bug