small bug fix adding variables to grid means adding variables to the list of vars