Fixing dropdown menu that does not close.