remove invalid resource