fixed clicking bug