Fix mongodb driver parse condition