fix reset bug in manage script