Fixed array joining bugs