diff --git a/resources/views/master.blade.php b/resources/views/master.blade.php
index ea6ab96ef6d6..9587baeee422 100644
--- a/resources/views/master.blade.php
+++ b/resources/views/master.blade.php
@@ -1,7 +1,7 @@
- @if (isset($account) && $account->hasFeature(FEATURE_WHITE_LABEL))
+ @if (isset($account) && $account instanceof \App\Models\Account && $account->hasFeature(FEATURE_WHITE_LABEL))
{{ trans('texts.client_portal') }}
@else
{{ isset($title) ? ($title . ' | Invoice Ninja') : ('Invoice Ninja | ' . trans('texts.app_title')) }}
diff --git a/resources/views/public/header.blade.php b/resources/views/public/header.blade.php
index d760747c33e8..dd2c5d6412d2 100644
--- a/resources/views/public/header.blade.php
+++ b/resources/views/public/header.blade.php
@@ -85,12 +85,12 @@
{!! link_to('/client/invoices', trans('texts.invoices') ) !!}
- @if ($account->hasFeature(FEATURE_DOCUMENTS))
+ @if (isset($account) && $account->hasFeature(FEATURE_DOCUMENTS))
{!! link_to('/client/documents', trans('texts.documents') ) !!}
@endif
- @if ($account->getTokenGatewayId())
+ @if (isset($account) && $account->getTokenGatewayId())
{!! link_to('/client/paymentmethods', trans('texts.payment_methods') ) !!}