Delay the dropdown menu clearing. Fix #52