fix bug and set score