fixed bug with score