Fix fatal error on page delete