fix a bug caused by using uninitialized value