fix input after output bug