Kat Fix on 'NoneType' object is unsubscriptable