#645 check for invalid comment numbers