fixed bugs on index writer and reader when using singletons. repository
correctly relocates now