Bug fix for mongoModelFormDetector