fix case when page (attachments) are out of sync with attachments widget