Fixed issue when set border.