make the objects array a subarray, which fixes the length calculation, fixes #228