Fixing threesome problem,there was bug about searching the third number