Fixed a bug in addComment