Fixed bug related to associativity