Slight bug fix in amen_sum