Fix gif crash.