Fix a variable is undefined forever

The variable captable will be undefined forever unless remove the declaration。