fix export of selected nested blocks