fix tip percentage update bug