Fixed semaphore negative argument