fixed double free in truncated distribution