fix for response status check