handling status code 599
fixed bug