small bug fix on math activity