fix bug - tooltip div is not defined on error