It’s not a bug, it’s a feature.
0 is a special value that means “don’t hide the popup at all”. So “0” is basically “infinite”.