fix a bug for valuesize not initialize