Fixed some bugs in DACs