another fix for mongoose