fix get-resource-dic