Loopholes in laws on guns and the mentally ill