Corrected an issue with multiple shm outputs