Fixed issue when page type isnt set