page type instanceof fix