fixed the bug in reprint