fixed issue 1587:Mongodb error on id