Fixed concat function