Fixing fatal error for missing pages