ranking bug fix #1,added default selection