fix error in mongoose schema