fix problem where I didnt update query offsets