Fixed bug in gif plugin.