Fix bug where aD and Ad were two terms