fix too many closing tables