Fixed calculating from right-associative to left-