Set mask properly for row from masked table