Fixed some issues with hashtag logic when adding inner loops.