removed a bug in LoopFunctions, which had been introduced in a commit on Nov. 18, 2013.