problem_33: fix dense gradient.