Fixed bug in tooltip