fix some mistyped variables in last commit