fix for joining diagonal lines