Fixed one bug when connect to mongohq.