fix modifier semaphore