list append bug fix