appending bug fix