Fix issue in resource_select_tag