Fixed bad template conditional