fixed page type detection