Fixes error on logged-out users