Fix blocks and functions loading.