fix lines cap/join