fix A bug of printing