fixing NPE
make setSegmentSize possible for locationIndex and apply defaultSegmentSize; reduce segmentSize for properties