fix bug in gif permlink