Fixed missing variable error.