fix Poisson off-by-one bug, thanks to @sliderman