fix bug when get local temp