Liten buggfix i for-loopen