fix math bug in exercises