fixed bug with empty dropdowns