Solve bug in GetSizeValues