re-calculate all index ranges after retention. fixes #350 (i guess)