fix score not updating properly