fix first visit session error bug