Fixed Nonetype in list