fix with-variable reference