fix border flash