fix server listening