general order sum fix