Fixed error when there is no current user