Fix memory uninitialised value