fix corners and borders