Fix an error that was breaking the main server loop