fixing problem with empty value in select field