Fixed bug relating to the change from variable IDs to name