Fixed visualization flickering bug.