fix mongo connection error