Fixed the server api