fixing problems with the LoopParser