fix a bug when initialize value