fix uninitialised variable

Fix unitialised variable warning