bugfix in AD library