fix dropdown menu bug