fixed a bug in set selected_year