Rescale histogram now works as it should (#6)