Fixed tableContains()