fix smarty