Fix tuple does not have attribute label error