Fixed server not working properly