Fix scratchblocks

Do scratchblock intialization after scipts it's dependent on.