Fixed problems with tool title generation.