fix crash of page when not logged in (dependency for uri function was missing).