fix the reset printf error