minor bug fixed when clear table