Fix conection class