Fixed an undefined variable error I just introduced.