Fixed a bug on events binding twice