fix source contains undefined, unable to add define bug