fixes some issues with copy pages

fixes #2598