fixed so that on resolve error we cancel the view transaction