fixed bug with dash line length