Fixes a bug in dropdown.

Signed-off-by: Vinayak Patil <vinayakpat@cybage.com>