Fixed message behavior when delete the page