Fixed an undefined variable