Fixes issue #276
had to check whether features are empty before looking in the inverse of
set.