Bug fix: data.toPatchVar