Fix mutual exclusion