fixed replaced-blocks bug