fix bugs in nested comments