Connection class is being adjusted second time