Fixed uninitialized variable warning when compiling