Fixed join function.