Fixed bug on erase last point from map