fix: wrong referenced variable access