Fixed conditional in template