Fix hotspot detection bug