Correct initial value of semaphore.