Maybe fixes the duplicating session error?