fix for non-resource pages