Fixed a missing ) and some raw PHP in SIS templates