minor bugfix

cost sum now refreshes automatically