fix handler update bug