Fix bug to allow multiple tuning runs in a single process