Fix the summing and assignment problems again