fix -Wmaybe-uninitialized issue