fixes for reprocessing 502 error