fixed compilation issue with invalid resource names