fixed incorrect handling of reject batch on error

fixed references to final status ids