Fixed bug with tables search and init