Fix custom attribute resource declaration