fix php/templates