fix some output bug