Fix for gif avatar bug