Fix error on undexpected success