Fix resource is missing problem