fixed main.coffee