WIP fix index bug in compressed storage