Fix sprite overlap outside the map border.