empty text bug fix, border min fix