fixed bug in dropdown component