append bug fix