fix some bugs about output