fix for avi mismatch issue