fix border transition