fixed a few issues when index records
Merge branch 'release1.2.2' of https://github.com/ternoffice/TERNDataDeliveryPortal into release1.2.2