fix bug in checkComment