Removes all references to blocks