Reindexing fix
Adding debugging reference