Fixed loops besides the server infinite loop