fix hiddenSingles algorithm