add judge, fix rating error