fix bug when scoring window