Fix anvil modifier cost logic