Fix coastline check.