fix couldn't rename when popup menu is visible