fixed a bug

wrong variable name.