fix for a sigularity where there is no candidate left.
Merge pull request #26 from 73/develop

fix for a sigularity where there is no candidate left.