Fixed issue where once a block was linked to a variable it wouldn't delete properly