Fixed critical bug. Numpy histograms need to have their value ranges set to 0-511 which is the range of possible bin assignments.