fix server bug