fix dropdown not hiding issue