fix a variable error