Getting errors appending