Fixed GPA calculation problem