Fixing dropdown bug