Fixed weird output in append().