Fix disabling restrictions