Removed a bug that repainted the map in the foreach for every sensor