Fix error with object usage in PqTemplate.php