Fixing some error spam with sanity checks and a small maxclients range bug