Fix bug multiplying matrices