Fix exemption check