fix border limitation