fix some bug

sometime frozen gifs appear