Guard Supply.last a bit against garbage input