fixed eror on connection