fix server-alive check