fixing tsp