Fixed crash issue.
Fixed resource find issue.