Commented resetting of region->buffer->done because it crashes the program