fix issue when multiples undefined values are referenced

Close #
More readable console.warn
v2.1.1