try to fix iv length is too short bug