fixes taking into account Period start twice when calculating segment availability range