Fix resource reference