fix may be used uninitialized warning