fix the server callback bug