Bug fix for rng=None (#306)