Fixes mongoose