fixed nonetype