Fix type conversion bug

Now best score setter should work as expected.