fix bug

fix the bu when invoke function will return undefined bug