Fix the popup updating bug.