fixed bug in data loaders