fixPhpBug50670 template_modifications