Fix bug with selection random candidate