bug fix in log mongodb