Fix resource reference error.