Fixing uninitialized variable