Cyanogenmod compatibility
Not IllegalArgumentException, but IllegalStateException here (sorry)