This is a question of implicit versus explicit: depending on the ordering of the input matrices, the result will change. This should not happen in any case.