Fixed windows heatmapdistance bug