Fix bug in join/parts