Fix compilation error of variable not initialised