fix a bug on gif