the cfdi cancel worked in the 81ca0e46 commit, that's why the code is returned unitil that commit the rigth solution is found out why the code in the 5624bdaf commit is not wotking when cfdi cancel is made