fix mitered corners