correcting appended blocks bug
minimal changes