Corrected a list concatenation bug