fix selection errors on page masks