fixed wrong roll back