A critical bug in control-thread HLS is fixed by moving addReturn() in controlthread.py ahead of incFsmCount().