fixed bug on page/pagemask interraction