fixing a bug for coffee-script support