fixed possibly uninitialized value usage