Fix problem with sum in latest julia