Bugfix: foreach-loops need an end