Fix #390 Crash in MP when using masking records