Fix border drawing bug.