fix the key prevent