Fix join lines