fixed header issue in avi