Fix for getting page in pasteaction