Fixed missing smarty if