Fixed for-loop