fixed IllegalAccessError upon exception