fix variable warning