Possibly fixed NRE in tank.maxAmount.set