Fixed defined variable warning