fix api cause table crash bug