Fixed NaN values in the map accumulation (but not in the heightmap extraction). Fixes the motion (it seems mostly ok now)