fixing dotted borders