fixed an avi issue