Bug fix in coffeescript