fixed bug where the handle for a shared memory area never is set on creation