fix print bug