fix bug in compact lookup that prevented merging with higher chunks