Fix the update of the selected options

When the options get loaded after the render of the component, the selection of the current element value was not done properly.

This fix the problem.