Fix crash for data on border.