Resolved a bug in delta encoding while constructing index