corrected gif bug #2