Fixed a bug of typo in volume affinity cost