Update templates.php

Fixed code...