Fix bug with error tooltip showing