fixed sample data not correctly initialising when loading new samples