fixed potential nil exception upon building tooltips