fix a bug with complementing an empty set with a length, fixes #1