bug in find_resourceID