hardening for invalid resource table