bug in matrix computation ?