fix global grade calculation with wrong passing grade when not using percentage grading system