Fixed a bug where click event wasn't firing