fix cancel fail based if nil