rescue from nil user agent