fix problem in showing table