fixed problem with loading gif.