fix cancel count bug