Fixed a bug with variable blocks not deleting