fix uninit var warning