fix variable reference