Fix fatal error on delete page