Fix concurrent GIF loading issue