fix mongoId cast issue