Corrected an async call in the server