Fixed SHM initialization.