[BUGFIX] Fix undefined variable