Fix for preventing priority inversion