fix border size bug