Paste page bug fix