fix: fix undefined variable