Fix disabling restriction when disabling method restriction