Fix broken semaphore reference