random selector bug fixed