do not mess up existing dialog legs in case re-sizing the legs array fails due to no more share mem