bugfix for named segments (access by name might have caused a segfault)