fix border problem