fix for duplicate session history id