bug fixes
text formatting fix and loop fix