Fixed grading (Thanks Piotr!)