clear table when is nil