fix pages destroy