Fix error for concat 2 chain in ruby