Fix the print message in the right time.