fixing inconsistent connection