#fix 362 fix bug that cause undefined