Fixed wrong for-loop