Fixed -Wmaybe-uninitialized  warning