Fix max_score