fix bugs for addComments