[fix] border condition fix