apply patch from Marco for linestyle update