fix bug in random jump