Fix searching of resource arguments.