bug fixed: while debugging controller draw the previous step, not the current