Fix blocks reference id