Bug fix: changed one vent to bind event - comapatibility with jQuery 1.6