Fixed issue when adding a block