Fixed custom anvil crash