Fix popup menu visibility