Fix bug when cancelling a create page action