Fix bug after printing.