hot fix server loop