Fix totalweight in Program detail