fix avi conversion