if condition corrected and retry_count incremented in rescue