fixed small problem with gif-generation