fix dashed line bug