fix uninitialise var