Fixed obsolete references to dimension.id (now is dimension.var)