Caught this one bad problem

Yea loops… while defining functions, loops can and references can do
some funny stuff… forgot that…