Fixed duplicated data

The load data function to populate data arrays was being called more
than once.