Fixing a bug in the  tooltip