fix error when there's not enough room to draw element on the map