Fix fatal errors for cached pages