fix Quantity delegate to allow_nil