Fixed bug searching for index in nonetype