fix bug: const var's not working