fixing gif bug