Fixed bug where samples/stored_data would not find the correct sample.