fix smarty local variable