fix bug with deletion of page content