Additional hint, because this can easily happen if you have multi-indexed variables and keep track of them in nested lists: Maybe you have passed a list of variables instead of the individual variable?