Enable API-TypeError: 'NoneType' object is not subscriptable