Fix the bug that fail to get value from variables