Another fix for cost mod