Fixed bug regarding still activity shows as unknown. index of array in Knn_API was the problem.