fix response status processing