fix Issue 11983 - RDMD masks out segmentation faults

https://d.puremagic.com/issues/show_bug.cgi?id=11983