fix 1.5 compatibility mostly for template html pages issues