fixed gif bugs