Fix restriction migrate