smarty3 fix