1. fixed if statement for checking friends-id cache
2. added correct_num count