external mongo error fix