fixed bug with pulse distribution