fix possible use of initialised value