Fixed double event triggering onclick.