fix MongoDB merge error