Fixed a bug in the function 'scores'