fix bugs in comment read