border inconsistency fix