fix for pagetemplate update