Solve bug of no output