fix bug in show tables