solve bug "undefined"