Fix too many connections bug.