fixed clear table bug