fix bug when the same dataset from two different locations is loaded