semaphore up/down were reversed