fixed a small typo in ping to the server method