Bug fixes

Fixed some catastrophic bugs, mostly dealing with ald.qc()