Fix resource dependencies