fixed error connection