fix autoconfig of mongo