fix coffeescript bug