fixed a bug. variable didn't exist.