fixed bug with score comparison