stop closing the table twice