fixed buggy score