fix border and shadow borders