Attempted to fix matrix multiplication