Why do I receive wrong information from matrix