Added some prints() for debugging purposes

Found a potencial Null pointer exception in the fixIndexes() method.
Wich is probably useless now...