Bug fix: 500 error because route main didn't exist