remove duplicate table closing