fixing answer sum bug