Fixed uninitialized variable error