Fixed missing variable reference