Fixed bug with parsing loop.