fix border calculation