Fixed bug with createblock.