fix border cells