Fix invalid generated coffee-script in some cases.