Corners fixed

through a variety of roundabout and pretty inelegant ways I managed to
fix the corners