Fix bug in bitmask extension.