Fixed bug where list gets concatenated multiple times