fix max connection