fix toolbar measure bug