fixed cb function in resetlocal