Fixed invalid resource error