fix for new mongoose version