patched some bugs in dropdown - issue #120