rsmask2: bugfix