Fix to the get_histogram function, it was re-ordering the data wrong.