"too many connections" bugfix