Fix dropdown selected element bug