useBareRockMask bug fix