Fix tooltip.coffee some bugs