fixed wrong local searching of external resources - different resources
were randomly found.