fixed dotted border bug