Fixed bug on initialization of dd,da,ad,aa.