bug on write score if condition fixed