Fix for _.mdm error handling