Fix for when type isn't present in pages dictionary