fix for shared get max session