fixed "too much connections bug"