Fix for files that have repeated objects with no data

Fixes issue #8.