Fix of resource path lookup bug