Fix completion popup unwanted behavior