Fix jquery event for better usability.