Fixed list append bug