fix const value undefined bug