fix delete member from restriction

fix for when last member in restriction