Fix bugs of no output