Semaphore status update bug fix