Fixed coffeescript event listener issue