fix tooltip bug after clearing box