bugfix for mask mode formats.