fix smarty path bug