minor fix related to auto-hide popup