Fix a few bugs of FDD.
Finish FDD reduction.