Fixed computation of resource's path.