bugfix for scheme random