fix several "maybe unitialised" warning. (false positive)