Fix data appending