fixed logo lookup and condition for default logo.