Fix bug in trace_controller. #172