Fix #536 print message problem