Fixed serverRegisterd callback.