mongo error fix