bugfixes. position and method behave correctly wrt histograms