Fixed bug in calculating scores in hierarchical lesson report