fix borders and shadows