That's why it's called a 'loophole' - when the letter of the law is followed, but the intent is subverted (or what people imagine what the intent should have been).