fix gui bug before apply knn