added logic to handle zero-sized indel files