fixed IOException when using show table for the second time