Fix border drawing.