Fixing a bug that was preventing tuning from working.