Fixed loadResampledData function in loaders.R