fixed print bug