Fix bug with tools.