Local variable warning fix