fixed bugs: reset data failed