fix bitmask thing