fix get length