fixing the tool tip so that displays correct data