fix: using undefined variable