fixed bug in impact parameter sampling