fix bug & update smarty version