Fixed a bug that prevented multiple elements from having the same click event.