Bug fix in informationIndexInX

Small refactoring too.