Fixed getNextFreeID in CustomPotion not working correctly