don't store/free malloc-ed address with static variable
fix some bug in second evalation