fixed Undefined が出る不具合を調整