Fix for infinity loop of attribute generating with 'bad' comments