Fixed client mainLoop missing