Table and Index partially working