Fixed jquery handler bug