corrected score comparison logic error

spotted and contributed by mr wang. thks!