Bug fix for printing failure.