fixed errors related to new mongodb fieldnames