Fix the variable name mess up that broke the cancel function