correction to page modification algorithm

didn't handle pages sharing resources dictionary well, as it overwritten
with the latest page change. so i am creating unique copies, starting
with the 2nd.