Fixed server so it works on heroku