fix category distinction in page masks