fixed bug where splitUntil wasn't setting bitmask