fixed errors caused by smarty update