fixed bug with shorthand php tag in templates