fixes #3 that would mistake object length for object depth