It finally computes correctly the complete matrices