Fix dotted and dashed borders