fix getTable