fix server listening before routes mounted