Fixing bug of the a-b vs. b-a