bugfix in coffeescript