Fix compatibility issue with old versions of forge.