fix sampling for truncated normal