fix autofilling blank matrices as 0