fix some variables uninitialisation