another fix for gif.js