fix the session checker