fixed click handler glitch