fixed maybe uninitialized warning