Fixed uninitialized variable

TBR @gaurave

Fixed #1656