fixing mongodb mapping