fixed redraw bug introduced by tooltip